/*
 * 
 *    _______  _______  _        _______ _________ _______  _______ _________ _______  _______         _______  ______           
 *   (  ____ )(  ____ \( \      (  ___  )\__   __/(  ___  )(  ____ )\__   __/(  ___  )(  ____ \       (  ____ \(  __  \ |\     /|
 *   | (    )|| (    \/| (      | (   ) |   ) (   | (   ) || (    )|   ) (   | (   ) || (    \/       | (    \/| (  \  )| )   ( |
 *   | (____)|| (__    | |      | (___) |   | |   | |   | || (____)|   | |   | |   | || (_____  _____ | (__    | |   ) || |   | |
 *   |     __)|  __)   | |      |  ___  |   | |   | |   | ||     __)   | |   | |   | |(_____  )(_____)|  __)   | |   | || |   | |
 *   | (\ (   | (      | |      | (   ) |   | |   | |   | || (\ (      | |   | |   | |      ) |       | (      | |   ) || |   | |
 *   | ) \ \__| (____/\| (____/\| )   ( |   | |   | (___) || ) \ \_____) (___| (___) |/\____) |       | (____/\| (__/  )| (___) |
 *   |/   \__/(_______/(_______/|/     \|   )_(   (_______)|/   \__/\_______/(_______)\_______)       (_______/(______/ (_______)
 *                                                                                                                  
 *      
 * 
 *      Copyleft (c) 2012 - 2013 Relatórios-EDU
 *
 *      http://ww2.ifro.edu.br/relatorios-edu
 *      DGTI - IFRO (69) - 2182-9623
 *          Alan de Oliveira Silva - alan.oliveira@ifro.edu.br
 *          Bruce F. Reis de Albuquerque - bruce.albuquerque@ifro.edu.br
 *          Flávio Marcos de Moraes - flavio.moraes@ifro.edu.br
 * 
 *      
 * 
 */


package br.org.ccb.ccbadm.connection;
/**
 *
 * @author alanoliveira
 */
public class PersistenceFactory {
    
    
    private static PersistenceTransaction persistenceTransaction = null;
    
    
    /*
     * Ninguém deve herdar ou instanciar esta classe
     */
    private PersistenceFactory() {
        
    }
    
    public static PersistenceTransaction getPersistenceTransaction() {
        
        if (persistenceTransaction == null) {
            persistenceTransaction = new PersistenceTransaction();
        }
        
        return persistenceTransaction;
    } 
    
}
